/*--------------------------------------------------------------------------
 DEPUI-GFX-TK 3.0 - GPL portable source code libraries 
 http://www.deleveld.dds.nl/depui.htm
 See file docs/copying for copyright details
 ---------------------------------------------------------------------------*/

#define MXMODULE_TEXTEDITOR
#include "depui/depui.c"
#include <string.h>

int main(int argc, char *argv[])
{
	MX_TEXTEDITOR *app;
	MX_GUIFONT *ffont;

	(void) argc;
	(void) argv;

	if (!mx_start())
		return EXIT_FAILURE;

	ffont = mx_guifont_load("./font/arial2.pcx", "arial");
	if (ffont)
		mx_guifont_default(ffont);

	app = mx_texteditor(0);
	assert(app);

	mx_position(app, 50, 50, 300, 300);
	mx_text_set(app, "Editor", -1, 0);
	mx_geometry(app);

	return mx_execute();
}

